﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using JobBoardAdminPanel.ViewModels;

namespace JobBoardAdminPanel.Commands
{
    public class AddCompanyCommand : ICommand
    {
        private EditCompaniesViewModel viewModel;

        public AddCompanyCommand(EditCompaniesViewModel viewModel)
        {
            this.viewModel = viewModel;
        }

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            viewModel.Add();
        }
    }
}
